﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectSem40701
{
    public partial class Article : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void lblDesc_DataBinding(object sender, EventArgs e)
        {
            Label lblContent = (Label)sender;
            lblContent.Text = Server.HtmlDecode(lblContent.Text);
        }

        protected void imgArticle_DataBinding(object sender, EventArgs e)
        {
            Image imgArticle = (Image)sender;
            if (imgArticle.ImageUrl.ToLower().EndsWith("news1-1.jpg"))
            {
                imgArticle.Visible = true;
            }
        }

        protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            GridView1.PageIndex = e.NewPageIndex;
            GridView1.DataBind();
        }
    }
}
